//
//  TourCell.m
//  GuideMe
//
//  Created by Amila Fonseka on 3/24/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "TourCell.h"

@implementation TourCell

@synthesize lblTourName, lblTourType, lblTourOffer;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code.
		self.contentView.backgroundColor = [UIColor clearColor];
		
//		imgCellBackground = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 40.0)];
//		imgCellBackground.contentMode=UIViewContentModeScaleAspectFit;
//		imgCellBackground.image = [UIImage imageNamed:@"cellLeague.png"];
//		[self.contentView addSubview:imgCellBackground];
		
		lblTourName = [[UILabel alloc] initWithFrame:CGRectMake(10.0, 10.0, 300.0, 25.0)];
		lblTourName.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];
		lblTourName.backgroundColor=[UIColor clearColor];
		lblTourName.textAlignment = UITextAlignmentLeft;
		[self.contentView addSubview:lblTourName];
		
		lblTourType = [[UILabel alloc] initWithFrame:CGRectMake(10.0, 35.0, 200.0, 15.0)];
		lblTourType.font = [UIFont fontWithName:@"Helvetica" size:10];
        lblTourType.textColor = [UIColor blueColor];
		lblTourType.backgroundColor=[UIColor clearColor];
		lblTourType.textAlignment = UITextAlignmentLeft;
		[self.contentView addSubview:lblTourType];
        
        lblTourOffer = [[UILabel alloc] initWithFrame:CGRectMake(220.0, 35.0, 80.0, 20.0)];
		lblTourOffer.font = [UIFont fontWithName:@"Helvetica-Bold" size:14];
        lblTourOffer.textColor = [UIColor redColor];
		lblTourOffer.backgroundColor=[UIColor clearColor];
		lblTourOffer.textAlignment = UITextAlignmentRight;
		[self.contentView addSubview:lblTourOffer];
        
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state.
}


- (void)dealloc {
	
	[lblTourName release];
	[lblTourType release];
	[lblTourOffer release];
    
	[super dealloc];
}


@end
